home *** CD-ROM | disk | FTP | other *** search
- Path: mudskipper.cac.psu.edu!user
- From: fcusack@tdx.org (frank.)
- Newsgroups: comp.lang.c++
- Subject: Re: for loop question
- Date: Mon, 19 Feb 1996 07:17:12 -0400
- Organization: Psychic Enemies Network
- Message-ID: <fcusack-1902960717120001@mudskipper.cac.psu.edu>
- References: <4emqf8$470@opal.southwind.net> <4f1kud$9rk@newsbf02.news.aol.com>
- NNTP-Posting-Host: mudskipper.cac.psu.edu
-
- In article <4f1kud$9rk@newsbf02.news.aol.com>, recursion@aol.com
- (Recursion) wrote:
-
- [...]
- >
- > int i;
- > for (i=10;i==10;i++) the program would enter the loop only one time and
- > would print out your data.
- >
- > int i;
- > for(i=0;i--10;i++) will never execute because i will never equal 10.
-
- would never execute becase i--10 is not a legal construct.
- ~Frank
- -- I am Pentium of Borg. Division is futile. You will be approximated. --
- -- If you build it, they will come --> http://www.tdx.org/~fcusack/ --
- -- PGP key fingerprint: 01 C0 C0 B9 CC 78 67 0F 3F 64 80 65 8B 0F F9 EA --
-